using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using DevelopMentor.Web.Services;

namespace Tests
{
	[WebService(Namespace="http://www.example.org/math")]
	[SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)]
	public class Math : WebService
	{
		[WebMethod]
		[Validation]
		public double Add(double x, double y)
		{
			return x + y;
		}
		
		[WebMethod]
		[Validation]
		public double Subtract(double x, double y)
		{
			return x - y;
		}
		
		[WebMethod]
		[Validation]
		public double Multiply(double x, double y)
		{
			return x * y;
		}
		
		[WebMethod]
		[Validation]
		public double Divide(double x, double y)
		{
			return x / y;
		}

		[WebMethod]
		[Validation]
		public double Mod(double x, double y)
		{
			return x % y;
		}
	}
}
